<template>
  <el-card>
    <div style="font-size: 18px; margin-bottom: 20px;">采购申请详情</div>
    <el-row :gutter="20">
      <el-col :span="12">
        <div>采购编号：{{ detail.ProcurementRequestBh }}</div>
        <div>采购原料编号：{{ detail.ProcurementRequestYlBh }}</div>
        <div>申请日期：{{ detail.ProcurementRequestYlCreateDate }}</div>
        <div>状态：{{ detail.status }}</div>
      </el-col>
      <el-col :span="12">
        <div>采购原料名称：{{ detail.ProcurementRequestYlName }}</div>
        <div>采购原料数量：{{ detail.ProcurementRequestYlNum }}</div>
        <div>采购日期：{{ detail.ProcurementRequestYlDate }}</div>
        <div>采购预算：{{ detail.RawmProcurementRequestYlYusuan }}</div>
      </el-col>
    </el-row>
    <el-button style="margin-top: 30px;" @click="goBack">返回</el-button>
  </el-card>
</template>

<script setup>
import { ref } from 'vue';
import { useRouter } from 'vue-router';

const router = useRouter();
// 这里的 detail 可以通过接口获取，也可以通过 props 传递
const detail = ref({
  ProcurementRequestBh: 'CG6271435',
  ProcurementRequestYlBh: 'YL6251611',
  ProcurementRequestYlName: '螺栓',
  ProcurementRequestYlNum: 950,
  ProcurementRequestYlCreateDate: '2023-6-24 16:00:56',
  ProcurementRequestYlDate: '2023-6-24 16:24:56',
  RawmProcurementRequestYlYusuan: '19000元',
  status: '待采购'
});

function goBack() {
  router.back();
}
</script>